#define _CRT_SECURE_NO_WARNINGS 1
//#include <ctype.h>
#include <stdio.h>

int main()
{
    char ch = 0;
    scanf("%c", &ch);
    printf("%d", ch);

    return 0;
}